package sg.edu.nus.iss.team4.entity.dao;

import java.io.Serializable;
import java.util.List;

public interface IBaseDAO<E, PK extends Serializable> {
	E insert(E entity) throws PersistenceEntityBizException;
	void update(E entity) throws PersistenceEntityBizException;
	void delete(E entity) throws PersistenceEntityBizException;
	
	E findByPrimaryKey(PK pk) throws PersistenceEntityBizException;	
	List<E> findByPrimaryKey(E entity) throws PersistenceEntityBizException;	
	
	void insertAll(List<E> entities)  throws PersistenceEntityBizException;
}
